<?
require("config.php");
require("header.php");
?>



<?
$showSharing = true;
$table = "course_schedule";

$field = array(

"id",
"name",
"date",

);

//$exp = "Limit 10";
$exp = " and status='Yes' order by order_index";

$list = limitQuery($table,$field,$exp);
echo "<pre>";print_r($list);exit;
?>









<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 

    <td width="186" valign="top"> 
      <?require("nav.php")?>
    </td>
    <td width="11"><img src="images/shim.gif" width="11" height="1"></td>
    <td valign="top"> 
      <?require("menu.php")?>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td align="right"><table width="100%" border="0">
              <tr> 
                <td height="50" class="header">&gt;&gt; Referencer</td>
              </tr>
            </table></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="5">
        <tr> 
          <td valign="top">




<ul>
<?
$table1 = "course_sharing";

$field = array(

"id",
"graduate",
"detail"
);

			
for ($i=0;$i<count($list);$i++){

$name = $list[$i][1];
$cid = $list[$i][0];
$exp = "AND ccode = '$cid' ORDER by order_index Limit 1";				

$r1 = null;
$r1 = unlimitQuery($table1,$field,$exp);

if ($r1){	
	
?>



<li> <a href="graduate_sharing.php?id=<?=$list[$i][0]?>"><?=$list[$i][1]?></a> <span class="note">(<?=outDate($list[$i][2])?>)</span></li>
<?
	}

}

?>
</ul>
			
			
			
			</td>
        </tr>
	      </table>
      <br> <br> <br>
      <br> </td>
    <td width="11"><img src="images/shim.gif" width="11" height="1"></td>
    <td width="173" valign="top">
	
	
<?require("list.php")?>	 
	  
	  
    </td>

  </tr>
</table>





<?require("footer.php")?>	